home *** CD-ROM | disk | FTP | other *** search
/ JCSM Shareware Collection 1996 September / JCSM Shareware Collection (JCS Distribution) (September 1996).ISO / prgtools / euphor13.zip / DEMO.DOC < prev    next >
Text File  |  1995-05-16  |  5KB  |  114 lines

  1.  
  2.         DEMO Programs Written in Euphoria
  3.         ---------------------------------
  4.  
  5.  This directory contains a number of example programs written in Euphoria.
  6.  These programs are being contributed to the Public Domain by 
  7.  Rapid Deployment Software. You are encouraged to modify and redistribute
  8.  any of these programs. These programs are not the best that you can do in 
  9.  Euphoria. They are intended mainly as examples to aid your understanding of
  10.  how the language works. We hope you will come up with something much better.
  11.  To run any of them type 'ex' followed by the file name. 
  12.  
  13.  If you are in Windows, and you have associated .ex files with ex.exe, you 
  14.  can simply double-click to run any .ex file. A few of the simpler
  15.  programs expect to be run from the command line and they will terminate
  16.  immediately after displaying something.
  17.  
  18.  You can view and modify these programs using any editor, but we recommend 
  19.  using the Euphoria editor, ed, so you can get color syntax highlighting. 
  20.  
  21.  -----------------------------------------------------------------------------
  22.  Note: If you have trouble running any of the graphics oriented programs, try
  23.  changing the line that says: 
  24.     constant GRAPHICS_MODE = 261  -- SVGA
  25.  to: 
  26.     constant GRAPHICS_MODE = 18   -- VGA
  27.  This will provide VGA resolution, and is less likely to cause problems.
  28.  See include\graphics.e for other possible graphics modes.
  29.  -----------------------------------------------------------------------------
  30.  
  31.  NAME      DESCRIPTION
  32.  ----      -----------
  33.  
  34.  allsorts.ex - comparison of different sorting algorithms
  35.           - which is the fastest sorting algorithm in Euphoria?
  36.  
  37.  animal.ex - guess the animal game
  38.        - let the computer guess which animal you are thinking of
  39.        - it learns about animals as you play
  40.        - great fun for the kids
  41.        
  42.  bitmap.ex - displays bitmap (.BMP) pictures
  43.  
  44.  buzz.ex   - "buzzword" generator - Try adding your own phrases.
  45.  
  46.  callmach.ex - an example of calling machine code from Euphoria
  47.  
  48.  example.ex   - example merge_sort program from the reference manual
  49.  ex.pro       - ex.pro is created when you run example.ex. It contains 
  50.             the profile output for example.ex.
  51.  
  52.  learn.ex  - a quick test of your Euphoria knowledge
  53.  
  54.  mouse.ex  - simple demo of get_mouse() built-in function
  55.        - you need DOS mouse support for this
  56.  
  57.  mset.ex   - Mandelbrot Set (fractal) generator
  58.        - Press Enter to stop the display and change all the colors
  59.            - Press Enter again to choose a region of the M-set to zoom in on
  60.        - use the arrow keys to select a box to enlarge, or type 'q'
  61.          to quit
  62.        - your picture is saved in a file
  63.         - this one will take a few minutes as hundreds of floating-point
  64.           calculations are performed *per pixel*.
  65.           
  66.  mydata.ex - a simple database program 
  67.  
  68.  plot3d.ex - 3-D surface plotting of functions 
  69.        - add in your own function of x and y, and see it plotted
  70.        - Press Enter to move on to the next sample function
  71.  
  72.  polygon.ex - displays interesting polygon patterns
  73.         - hit space bar to see a new pattern
  74.  
  75.  queens.ex - solves the N queens problem - how to place N queens on an NxN
  76.          chess board so they do not attack each other (N = 8 for a
  77.          standard board). 
  78.  
  79.  sanity.ex - this program tests hundreds of features of Euphoria, in a quick,
  80.          self-test. If this program reports "PASSED" then Euphoria is
  81.          working on your machine. If not, there may be something wrong.
  82.  
  83.  sb.ex  - bouncing balls screen blank program 
  84.  
  85.  simple.ex - compiled "with trace" so you can see a program execute
  86.          by hitting Enter for each statement. Just Press down on
  87.          the Enter key.
  88.  
  89.  stereo.ex - make a random dot stereo picture:
  90.         - reads "picture" file by default 
  91.           
  92.  ttt.ex  - 3-dimensional tic tac toe
  93.          - try to get 4 in a row, on any plane or 1 per plane
  94.          - play against "DEFENDO" or "AGGRESSO" or a human, or
  95.        watch the AGGRESSO and DEFENDO algorithms slug it out
  96.      - you need DOS mouse support for a human to play
  97.  
  98.  wire.ex - 3-D wire frame demo of the big 'E' in Euphoria
  99.      - hit space bar to freeze/restart the display
  100.      - Enter to quit
  101.  
  102.  bench directory   - contains benchmark programs for comparing Euphoria
  103.              against QBasic. Don't take our word for it! - see
  104.              how fast Euphoria is on your machine
  105.  
  106.  langwar directory - contains a real-time star wars type game
  107.            - read lw.doc, ex lw
  108.  
  109.   -----------------------------------------------------
  110.   -- See the .ex files themselves for more details.  --
  111.   -- You can view them with:   ed filename.ex        --
  112.   -----------------------------------------------------
  113.  
  114.